<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="../public/css/common.css">
    <link rel="stylesheet" href="css/couponDetail.css">
    <link rel="stylesheet" href="../public/css/bootstrap.css">
    <link rel="stylesheet" href="../public/iconfont/iconfont.css">

    <title>优惠券详情页（领取）</title>
</head>
<body>
<div>
    <img src="images/xiami-bannerM.jpg" width="100%">
</div>

<div class="receive-content">
    <p class="vip">优酷土豆VIP黄金21天卡</p>
    <p class="expiry-time">有效期：2016-12-12 至 2017-12-31</p>
</div>
<div class="discount-rule">
    <p>优惠细则</p>
    <p>1.9积分+9元兑换1个优酷土豆黄金会员21天卡权益，追剧免广告，会员大片免费看，独家网络综艺等你围观！</p>
    <p>2.黄金会员仅适用于PC端、APP端，TV端不可使用；</p>
    <p>3.兑换后，请在2017年12月31日前激活兑换码，过期作废。兑换码仅可激活1次。激活后，可在自激活之日起21天内享受优酷土豆会员权益；</p>
    <p>4.该商品不支持退券，不得转售，兑换码是否有效以商户核实为准；</p>
    <p>5.激活流程：</p>
    <p>①注册或登录http://youku.com</p>
    <p>②注册登陆成功后，依次点击首页“会员”频道-导航栏“我的会员卡”进入会员卡激活页面，依次输入“会员兑换码”及“验证码”，点击“激活”按钮，完成优酷土豆会员权益激活。</p>
    <p>6.如果在兑换码使用过程中遇到任何问题请联系优酷土豆客服。客服电话：400-810-3568。</p>
</div>
<div class="btn-receive" style="background: #0097F1">
    <a style="color: #fff">立即兑换</a>
</div>

<!--弹窗-->
<div class="popup redeem-layer" style="display: none">
    <div class="redeem-popup">
        <div class="redeem-popup-text">
            <div class="redeem-wraper-top">
                <p class="icon iconfont guanbi">&#xe63d;</p>
                <p class="redeem-popup-top">YOTA健康餐15元优惠券 </p>
                <div class="redeem-popup-bot">
                    <p class="redeem-bot-num">12金币</p>
                    <div class="redeem-bot-txt">
                        <i class="icon iconfont">&#xe6ec; </i>
                        <p class="bot-txt-rit"> 累积领取量： 80</p>
                    </div>
                </div>
            </div>

            <div class="redeem-wraper">
                <div class="redeem-phone">
                    <div class="redeem-phone-num">
                        <i class="icon iconfont">&#xe61a;</i>
                        <input type="text" placeholder="请输入您的手机号码">
                    </div>
                </div>

                <div class="redeem-verification">
                    <div class="redeem-verification-num">
                        <input type="text" placeholder="请输入验证码">
                        <a class="send1" onclick="sends.send();">发送验证码</a>
                    </div>
                </div>
            </div>

        </div>
        <a class="btn-sure clearfix" href="receive-successful.html">确 认</a>
    </div>
</div>

<script type="text/javascript" src="../public/jquery/jquery.min.js"></script>
<script type="text/javascript" src="../public/js/common.js"></script>
<script type="text/javascript" src="js/couponDetail.js"></script>
<script src="../public/js/bootstrap.js"></script>
<script type="text/javascript">
    var sends = {
        checked: 1,
        send: function () {
            var numbers = /^1\d{10}$/;
            var val = $('.redeem-phone-num input').val().replace(/\s+/g, ""); //获取输入手机号码
            if (numbers.test(val)) {
                var time = 60;

                function timeCountDown() {
                    if (time == 0) {
                        clearInterval(timer);
                        $('.redeem-verification-num a').addClass('send1').removeClass('send0').html("发送验证码");
                        sends.checked = 1;
                        return true;
                    }
                    $('.redeem-verification-num a').html(time + "s倒计时");
                    time--;
                    return false;
                    sends.checked = 0;
                }

                $('.redeem-verification-num a').addClass('send0').removeClass('send1');
                timeCountDown();
                var timer = setInterval(timeCountDown, 1000);
            }
        }
    }
</script>

</body>
</html>